<template>
	<view>
		<view class="tbasBox flex-row">
			<view class="topTabs flex-between">
				<scroll-view :scroll-x="true" style="width: 750rpx;">
					<view class="topTabsLeft flex-row">
						<view class="topTab flex-center" v-for="item in tabsList" :key="item.id" @click="onTab(item.id)">
							<view :class="[item.status ? 'topTabText2' : 'topTabText']">
								{{ item.title }}
							</view>
							<image class="tabLine" src="http://www.bobei.shop/static/third/tabLine.png" mode="" v-if="item.status">
							</image>
						</view>
					</view>
				</scroll-view>
			</view>
		</view>


		<view class="list" v-if="list.length">
			<view class="listItem" v-for="(item,index) in list" :key="index" @click="onListItem(item.id)">
				<view class="center">
					<view class="infoBox">
						<view class="info" v-for="(goods,gIndex) in item.orderGoods" :key="gIndex">
							<view class="infoTop flex">
								<image class="thumb" :src="goods.thumb" mode=""></image>
								<view class="infoTopR">
									<view class="goodsTitleBox flex-between">
										<view class="goodsTitle oneHidden">
											{{goods.title}}
										</view>
										<view class="goodsStatus" v-if="item.status == 0">
											待付款
										</view>
										<view class="goodsStatus" v-if="item.status == 1">
											待发货
										</view>
										<view class="goodsStatus" v-if="item.status == 2">
											待收货
										</view>
										<view class="goodsStatus" v-if="item.status == 6">
											已完成
										</view>
										<view class="goodsStatus" v-if="item.status == -1">
											已取消
										</view>
									</view>

									<view class="skuBox flex-between">
										<view class="sku flex-row">
											<view class="skuText" v-if="goods.specTitle">
												{{ goods.specTitle }}
											</view>
											<view class="amount flex-row">
												<view class="amountText">
													数量
												</view>
												<view class="amountText2">
													X
												</view>
												<view class="amountText">
													{{goods.num}}
												</view>
											</view>
										</view>
										<view class="price">
											¥{{goods.price}}
										</view>
									</view>
								</view>
							</view>

						</view>
						<view class="finalPrice flex-row">
							<view class="finalPriceText">
								实付款：
							</view>
							<view class="finalPriceText2">
								¥{{ item.finalPrice }}
							</view>
						</view>
					</view>
				</view>

				<view class="bom flex-row">
					<button class="btn" :plain="true" v-if="item.status == 0" @click.stop="closeOrder(item.id)">取消订单</button>
					<button class="btn2" :plain="true" v-if="item.status == 0" @click.stop="pay(item.orderNo)">立即支付</button>

					<button class="btn" :plain="true" v-if="item.status == 2"
						@click.stop="goLogistics(item.postCn,item.postNo,item.post,item.id)">查看物流</button>
					<button class="btn2" :plain="true" v-if="item.status == 2" @click.stop="theGoods(item.id)">确认收货</button>
					<button class="btn2" :plain="true"
						v-if="(item.status == 1 || item.status == 2) && (item.type== 2 || item.type == 4)"
						@click.stop="onListItem(item.id)">申请退款</button>


					<button class="btn2" :plain="true" v-if="item.status == 3 && item.iscomment == 0"
						@click.stop="goEval(item.id)">去评价</button>

					<button class="btn" :plain="true" v-if="item.status == 6" @click.stop="deleteOrder(item.id)">删除订单</button>
					<button class="btn2" :plain="true" v-if="item.status == 6" @click.stop="buyAgain(item.goodsId)">再次购买</button>
				</view>


			</view>
		</view>

		<u-loadmore :status="status" v-if="list.length" />

		<view class="noData flex-center" v-if="!list.length">
			<image class="homePopupImg" src="http://www.bobei.shop/static/third/homePopupImg.png"></image>
			<view class="noDataText">
				暂无任何商品
			</view>
		</view>

		<my-popup-tips type="bottom" :showTips="paywayShow" @tipsOpen="paywayOpen" @tipsClose="paywayClose">
			<template #default>
				<view class="paywayBox">
					<image class="close" src="http://www.bobei.shop/static/my/payway/close.png" @click="paywayShow = false">
					</image>
					<view class="paywayTitle">
						选择支付方式
					</view>

					<view class="way">
						<view class="wayItem flex-between" v-for="item in actions" :key="item.id" @click="onWayItem(item)">
							<view class="wayItemLeft flex-row">
								<image class="wayItemLeftImg" :src="item.image"></image>
								<view class="wayItemLeftCon">
									<view class="wayItemLeftConText">
										{{ item.name }}
									</view>
									<!-- 	<view class="wayItemLeftConCard">
									123456789
								</view> -->
								</view>
							</view>
							<view class="wayItemRight">
								<image class="choose" src="http://www.bobei.shop/static/login/choose.png" v-if="!item.status">
								</image>
								<image class="choose" src="http://www.bobei.shop/static/login/choosed.png" v-if="item.status">
								</image>
							</view>
						</view>

						<view class="wayItem flex-between" @click="goMyBankCard('/pages/my/bank/myBankCard')">
							<view class="wayItemLeft flex-row">
								<image class="wayItemLeftImg" src="http://www.bobei.shop/static/my/payway/yinHang.png">
								</image>
								<view class="wayItemLeftCon">
									<view class="wayItemLeftConText">
										添加银行卡
									</view>
								</view>
							</view>
							<view class="wayItemRight">
								<view class="add flex-row">
									<view class="addText">
										去添加
									</view>
									<image class="arrowRight" src="http://www.bobei.shop/static/home/arrowRight.png" mode=""></image>
								</view>
							</view>
						</view>
					</view>

					<button class="paySure" :plain="true" @click="onPaySure">确认付款</button>
				</view>
			</template>
		</my-popup-tips>

		<!-- 密码框 -->
		<my-popup-tips :showTips="passShow" :mask="true" @tipsOpen="passTipsOpen" @tipsClose="passTipsClose">
			<view class="passTipsBox">
				<view class="tipsTitle flex-center">
					提示
				</view>

				<view class="tipsText flex-center">
					<input type="password" class="safeword" v-model="safeword" placeholder="请输入支付密码">
				</view>

				<view class="tipsBtnBox flex-between">
					<button class="tipsCloseBtn" :plain="true" @click="onPassTipsCloseBtn">取消</button>
					<button class="tipsSureBtn" :plain="true" :disabled="oneClick" @click="onPassTipsSureBtn">确定</button>
				</view>
			</view>
		</my-popup-tips>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabId: 0,
				tabsList: [{
						id: 0,
						title: "全部",
						status: false,
					}, {
						id: 1,
						title: "待支付",
						status: false,
					},
					{
						id: 2,
						title: "待发货",
						status: false,
					},
					{
						id: 3,
						title: "待收货/使用",
						status: false,
					},
					{
						id: 4,
						title: "评价",
						status: false,
					},
				],
				lastId: 0,
				page: 1,
				list: [],
				end: false,
				status: 'loadmore',

				orederNo: "",
				paywayShow: false,
				bankIcon: {
					CIB: "http://www.bobei.shop/static/my/payway/CIB.png", // 兴业银行
					ECITIC: "http://www.bobei.shop/static/my/payway/ECITIC.png", // 中信银行
					PINGANBANK: "http://www.bobei.shop/static/my/payway/PINGANBANK.png", // 平安银行
					SHB: "http://www.bobei.shop/static/my/payway/SHB.png", // 上海银行
					ABC: "http://www.bobei.shop/static/my/payway/ABC.png", // 农业银行
					BCCB: "http://www.bobei.shop/static/my/payway/BCCB.png", // 北京银行
					BOC: "http://www.bobei.shop/static/my/payway/BOC.png", // 中国银行
					BOCO: "http://www.bobei.shop/static/my/payway/BOCO.png", // 交通银行
					CCB: "http://www.bobei.shop/static/my/payway/CCB.png", // 建设银行
					CEB: "http://www.bobei.shop/static/my/payway/CEB.png", // 光大银行
					CGB: "http://www.bobei.shop/static/my/payway/CGB.png", // 广发银行
					CMBC: "http://www.bobei.shop/static/my/payway/CMBC.png", // 民生银行
					CMBCHINA: "http://www.bobei.shop/static/my/payway/CMBCHINA.png", // 招商银行
					HXB: "http://www.bobei.shop/static/my/payway/HXB.png", // 华夏银行
					ICBC: "http://www.bobei.shop/static/my/payway/ICBC.png", // 工商银行
					POST: "http://www.bobei.shop/static/my/payway/POST.png", // 邮储银行
					SPDB: "http://www.bobei.shop/static/my/payway/SPDB.png", // 浦发银安
				},
				actionsChoose: {
					name: "", // 支付方式名称
					id: "", // 支付方式id
					status: false, // 是否选中
					image: "", // 支付方式图标
					bankCardId: "", // 银行卡支付的银行卡id
					bankAbb: "", // 银行缩写大写字母
					cardNo: "", // 银行卡号
				},
				actions: [],
				actions2: [{
						name: "账户余额", // 支付方式名称
						id: "0", // 支付方式id
						status: false, // 是否选中
						image: "http://www.bobei.shop/static/my/payway/yuE.png", // 支付方式图标
						bankCardId: "", // 银行卡支付的银行卡id
						bankAbb: "", // 银行缩写大写字母
					},
					// {
					// 	name: "微信支付",
					// 	id: "1",
					// 	status: false,
					// 	image: "http://www.bobei.shop/static/my/payway/weiXin.png",
					// 	bankCardId: "",
					// 	bankAbb: "",
					// },
					// {
					// 	name: "支付宝支付",
					// 	id: "2",
					// 	status: false,
					// 	image: "http://www.bobei.shop/static/my/payway/zhiFuBao.png",
					// 	bankCardId: "",
					// 	bankAbb: "",
					// },
					//// 微信APP支付
					// {
					// 	name: "微信APP",
					// 	id: "11",
					// 	status: false,
					// 	image: "http://www.bobei.shop/static/my/payway/weiXin.png",
					// 	bankCardId: "",
					// 	bankAbb: "",
					// },
					//// 支付宝APP支付
					// {
					// 	name: "支付宝APP",
					// 	id: "12",
					// 	status: false,
					// 	image: "http://www.bobei.shop/static/my/payway/zhiFuBao.png",
					// 	bankCardId: "",
					// 	bankAbb: "",
					// },
					// {
					// 	name: "云闪付",
					// 	id: "3",
					// 	status: false,
					// 	image: "http://www.bobei.shop/static/my/payway/yuShanFu.png",
					// 	bankCardId: "",
					// 	bankAbb: "",
					// },
				],
				interval: "",
				passShow: false,
				safeword: "",
				oneClick: false,
			}
		},
		onLoad(option) {
			this.tabId = option.tabId ? option.tabId : this.tabId;
			this.tabsList.forEach((item, index) => {
				item.status = false;
				if (item.id == this.tabId) {
					item.status = true;
					this.tabId = item.id;
					// console.log("this.tabId:", this.tabId);
					uni.setStorageSync('tabId', this.tabId);
				}
			})
		},
		onShow() {
			this.reset()
			this.getBankCardList()
			// this.getOrderList();
		},
		onReachBottom() {
			this.getOrderList()
		},
		methods: {
			deleteOrder(id) {
				this.$post({
					url: '/portal/Shop',
					module: 'Order',
					interface: 1002,
					data: {
						id: id,
					}
				}).then(res => {
					uni.showToast({
						title: res.message,
						icon: "none",
						duration: 1500,
					})
					this.reset()
				})
			},
			buyAgain(id) {
				console.log("再次购买", id);
				uni.navigateTo({
					url: "/home/goodsDetails?id=" + id,
				})
			},
			onPassTipsSureBtn() {
				if (!this.safeword) {
					uni.showToast({
						title: "请输入支付密码密码",
						icon: "none",
						duration: 1500,
					})
					return;
				}
				this.oneClick = true;
				this.$post({
						module: 'Pay',
						interface: 1000,
						data: {
							order_no: this.orederNo,
							type: '0',
							way: this.actionsChoose.id,
							cardId: this.actionsChoose.bankCardId,
							safeword: this.safeword,
						}
					}).then((res) => {
						if (this.actionsChoose.id == '0') { // 余额支付
							// this.paywayShow = false;
							this.passShow = false;
							uni.showToast({
								title: "支付成功",
								icon: "none",
								duration: 1500,
							})
							this.reset()
							setTimeout(() => {
								this.oneClick = false;
							}, 1500)
						}
						if (this.actionsChoose.id == '2') { // 支付宝H5支付
							// #ifdef  H5
							this.passShow = false;
							setTimeout(() => {
								this.oneClick = false;
							}, 1500)
							window.location.href = res.charge;
							// #endif
							// #ifdef  APP-PLUS
							this.passShow = false;
							setTimeout(() => {
								this.oneClick = false;
							}, 1500)
							// uniapp打开浏览器
							plus.runtime.openURL(res.charge);
							// #endif
						} else if (this.actionsChoose.id == '4') { // 银行卡
							// 查询银行卡支付是否成功
							this.interval = setInterval(() => {
								this.$post({
										url: "/portal/Shop",
										module: "Order",
										interface: "1007",
										data: {
											orderNo: this.orederNo,
										},
									})
									.then((resp) => {
										if (resp.status == 1) {
											clearInterval(this.interval);
											// this.paywayShow = false;
											this.passShow = false;
											uni.showToast({
												title: "支付成功",
												icon: "none",
												duration: 1500,
											})
											this.reset()
											setTimeout(() => {
												this.oneClick = false;
											}, 1500)
										} else if (resp.status == 0) {
											// console.log("查询支付状态中")
										} else {
											clearInterval(this.interval);
											// this.paywayShow = false;
											this.passShow = false;
											uni.showToast({
												title: "支付失败",
												icon: "none",
												duration: 1500,
											})
											this.reset()
											setTimeout(() => {
												this.oneClick = false;
											}, 1500)
										}
									})

							}, 1500);
						}
					})
					.catch((err) => {
						// console.log("支付错误", err)
						// this.paywayShow = false;
						this.passShow = false;
						uni.showToast({
							title: "支付失败",
							icon: "none",
							duration: 1500,
						})
						setTimeout(() => {
							this.oneClick = false;
						}, 1500)
					})
			},
			onPassTipsCloseBtn() {
				this.passShow = false;
			},
			passTipsOpen(param) {
				this.passShow = param;
			},
			passTipsClose(param) {
				this.passShow = param;
			},
			pay(orederNo) {
				this.orederNo = orederNo;
				this.paywayShow = true;
			},
			onPaySure() {
				this.paywayShow = false;
				this.passShow = true;


			},
			// 银行卡列表
			getBankCardList() {
				this.$post({
					module: "Finance",
					interface: "1000",
				}).then((res) => {
					// console.log("银行卡列表", res);
					let bankCardList = [];
					res.list.forEach((item, index) => {
						bankCardList[index] = {
							name: item.cardNo,
							id: "4",
							status: false,
							image: this.bankIcon[item.bankCode] ?
								this.bankIcon[item.bankCode] : "http://www.bobei.shop/static/my/payway/yinHang.png",
							bankCardId: item.id,
							bankAbb: item.bankCode,
							cardNo: item.cardNo,
						};
					});

					this.actions = [...this.actions2, ...bankCardList]
					this.actions[0].status = true;
					this.actionsChoose = {
						name: this.actions[0].name,
						id: this.actions[0].id,
						status: this.actions[0].status,
						image: this.actions[0].image,
						bankCardId: this.actions[0].bankCardId,
						bankAbb: this.actions[0].bankAbb,
						cardNo: this.actions[0].cardNo,
					}
					// console.log("actions", this.actions);
				});
			},
			onWayItem(param) {
				this.actions.forEach((item) => {
					item.status = false;
					if (param.id == item.id) {
						item.status = true;
						this.actionsChoose = {
							name: item.name,
							id: item.id,
							status: item.status,
							image: item.image,
							bankCardId: item.bankCardId,
							bankAbb: item.bankAbb,
							cardNo: item.cardNo,
						}
					}
				})
			},
			paywayOpen(param) {
				this.paywayShow = param;
			},
			paywayClose(param) {
				this.paywayShow = param;
			},
			goMyBankCard(url) {
				this.paywayShow = false;
				uni.navigateTo({
					url: url
				})
			},
			onTab(tabId) {
				this.tabId = tabId;
				// console.log("tabs切换", this.tabId);
				this.tabsList.forEach((item) => {
					item.status = false;
					if (item.id == tabId) {
						item.status = true;
						this.tabId = item.id;
						// console.log("this.tabId:", this.tabId);
						uni.setStorageSync('tabId', this.tabId);
					}
				})
				this.reset()
			},
			onListItem(id) {
				uni.navigateTo({
					url: `/pages/my/orderDetails?tabId=${this.tabId}&id=${id}`
				})
			},
			goLogistics(postCn, postNo, post, id) {
				uni.navigateTo({
					url: `/pages/my/logistics?cn=${postCn}&postNo=${postNo}&post=${post}&orderId=${id}`
				})
			},
			getOrderList() {
				if (this.end) {
					return
				}
				this.$post({
					url: '/portal/Shop',
					module: 'Order',
					interface: 1000,
					data: {
						lastId: this.lastId,
						page: this.page,
						status: this.tabId
					}
				}).then(res => {
					this.list = [...this.list, ...res.list]
					if (res.list.length < 10) {
						this.end = true
					}
					if (res.list.length < 10) {
						this.status = 'nomore';
					} else {
						this.status = 'loading';
					}
					this.page++
					this.lastId = res.lastId
				})
			},
			closeOrder(id) {
				this.$post({
					url: '/portal/Shop',
					module: 'Order',
					interface: 1004,
					data: {
						id: id,
						reason: ''
					}
				}).then(res => {
					uni.showToast({
						title: res.message,
						icon: "none",
						duration: 1500,
					})
					this.reset()
				})
			},
			reset() {
				this.list = []
				this.lastId = 0
				this.page = 1,
					this.end = false
				this.status = 'loadmore'
				this.getOrderList()
			},


			theGoods(id) {
				this.$post({
					url: '/portal/Shop',
					module: 'Order',
					interface: 1003,
					data: {
						id: id,
					}
				}).then(res => {
					uni.showToast({
						title: res.message,
						icon: "none",
						duration: 1500,
					})
					this.reset()
				})
			},
			goEval(id) {
				// console.log("去评价")
				uni.navigateTo({
					url: '/home/eval?id=' + id
				})
			},


		},
	}
</script>

<style scoped lang="scss">
	.tbasBox {
		width: 100%;
		position: fixed;
		top: var(--window-top);
		left: 0;
		z-index: 1;
		background-color: #ffffff;

		.topTabs {
			width: 100%;
			height: 55rpx;

			.topTabsLeft {
				width: 750rpx;
				height: 55rpx;
				overflow-x: auto;
				padding: 0 30rpx;

				.topTab {
					flex-direction: column;
					margin-right: 60rpx;

					.topTabText {
						font-size: 28rpx;
						font-family: PingFang SC-Regular, PingFang SC;
						font-weight: 400;
						color: #000000;
						white-space: nowrap;
					}

					.topTabText2 {
						font-size: 28rpx;
						font-family: PingFang SC-Medium, PingFang SC;
						font-weight: bold;
						color: #000000;
						white-space: nowrap;
					}

					.tabLine {
						width: 72rpx;
						height: 16rpx;
					}
				}
			}

			.topTabsRight {
				.topTabsRightImg {
					width: 40rpx;
					height: 40rpx;
				}
			}
		}
	}


	.list {
		padding: 26rpx 30rpx 0;
		margin-top: 88rpx;

		.listItem {
			margin-bottom: 24rpx;
			background: #FFFFFF;
			box-shadow: 0px 8rpx 8rpx 0px rgba(212, 212, 212, 0.25);
			border-radius: 24rpx 24rpx 24rpx 24rpx;

			.top {
				padding: 16rpx 20rpx 16rpx 30rpx;

				.orderNo {
					font-size: 28rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #afa9b0;
					line-height: 40rpx;
				}

				.orderStatus {
					font-size: 24rpx;
					font-family: PingFang SC-Medium, PingFang SC;
					font-weight: 500;
					color: #F2615F;
				}
			}



			.center {
				padding: 32rpx 0 0;

				.infoBox {
					width: 100%;
					background: #FFFFFF;
					border-radius: 16rpx 16rpx 16rpx 16rpx;

					.info {
						padding: 30rpx 14rpx 0 28rpx;

						.infoTop {
							.thumb {
								width: 169rpx;
								height: 169rpx;
								border-radius: 16rpx;
							}

							.infoTopR {
								width: 458rpx;
								padding-left: 14rpx;

								.goodsTitleBox {
									.goodsTitle {
										width: 360rpx;
										font-size: 24rpx;
										font-family: PingFang SC-Medium, PingFang SC;
										font-weight: bold;
										color: #333333;
									}

									.goodsStatus {
										font-size: 24rpx;
										font-family: PingFang SC-Medium, PingFang SC;
										font-weight: 500;
										color: #F2615F;
									}
								}



								.skuBox {
									width: 100%;
									margin-top: 14rpx;

									.sku {
										.skuText {
											font-size: 24rpx;
											font-family: PingFang SC-Regular, PingFang SC;
											font-weight: 400;
											color: #999999;
											margin-right: 20rpx;
										}

										.amount {


											.amountText {
												font-size: 24rpx;
												font-family: PingFang SC-Regular, PingFang SC;
												font-weight: 400;
												color: #999999;
											}

											.amountText2 {
												font-size: 24rpx;
												font-family: PingFang SC-Regular, PingFang SC;
												font-weight: bold;
												color: #000000;
											}
										}
									}

									.price {
										font-size: 24rpx;
										font-family: PingFang SC-Regular, PingFang SC;
										font-weight: 400;
										color: #000000;
									}
								}
							}
						}


					}

					.finalPrice {
						margin-top: 12rpx;
						justify-content: flex-end;
						padding: 0 16rpx;

						.finalPriceText {
							font-size: 24rpx;
							font-family: PingFang SC-Regular, PingFang SC;
							font-weight: 400;
							color: #333333;
						}

						.finalPriceText2 {
							font-size: 32rpx;
							font-family: PingFang SC-Medium, PingFang SC;
							font-weight: bold;
							color: #333333;
						}
					}
				}

				.subtotalBox {
					justify-content: flex-end;
					margin-top: 40rpx;
					padding: 0 30rpx;

					.num {
						font-size: 24rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #afa9b0;
						line-height: 40rpx;
					}

					.subtotal {
						font-size: 24rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #000000;
						line-height: 40rpx;
						margin-left: 20rpx;
					}
				}
			}

			.bom {
				width: 100%;
				justify-content: flex-end;
				padding: 0 0 36rpx 30rpx;
				margin-top: 24rpx;

				.btn {
					font-size: 24rpx;
					font-family: PingFang SC-Medium, PingFang SC;
					font-weight: 500;
					color: #333333;
					width: 136rpx;
					height: 56rpx;
					border-radius: 4rpx 4rpx 4rpx 4rpx;
					border: 1rpx solid #D9D9D9;
					padding: 0;
					background-color: #ffffff;
					margin: 0 20rpx 0 0;
				}

				.btn2 {
					font-size: 24rpx;
					font-family: PingFang SC-Medium, PingFang SC;
					font-weight: 500;
					color: #F2615F;
					width: 136rpx;
					height: 56rpx;
					border-radius: 4rpx 4rpx 4rpx 4rpx;
					padding: 0;
					margin: 0 20rpx 0 0;
					background-color: #ffffff;
					border: 2rpx solid #F2615F;
				}
			}

		}
	}

	.noData {
		flex-direction: column;
		margin-top: 204rpx;

		.homePopupImg {
			width: 480rpx;
			height: 312rpx;
		}

		.noDataText {
			font-size: 28rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #999999;
			margin-top: 154rpx
		}
	}



	.paywayBox {
		width: 100%;
		background-color: #ffffff;
		border-radius: 16rpx 16rpx 0 0;
		padding-top: 44rpx;
		position: relative;
		padding-bottom: 41rpx;

		.close {
			width: 48rpx;
			height: 48rpx;
			position: absolute;
			top: 18rpx;
			right: 20rpx;
			z-index: 1;
		}

		.paywayTitle {
			font-size: 36rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #333333;
			line-height: 50rpx;
			text-align: center;
		}

		.way {
			margin-top: 40rpx;

			.wayItem {
				padding: 0 39rpx 0 40rpx;
				height: 110rpx;
				border-top: 2rpx solid #F5F5F5;

				.wayItemLeft {
					.wayItemLeftImg {
						width: 44rpx;
						height: 44rpx;
					}

					.wayItemLeftCon {
						margin-left: 20rpx;

						.wayItemLeftConText {
							font-size: 30rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #333333;
							line-height: 42rpx;
						}

						.wayItemLeftConCard {
							font-size: 24rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #333333;
							line-height: 42rpx;
						}
					}
				}

				.wayItemRight {
					.choose {
						width: 40rpx;
						height: 40rpx;
					}

					.add {
						.addText {
							font-size: 26rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #999999;
							line-height: 37rpx;
						}

						.arrowRight {
							width: 32rpx;
							height: 32rpx;
						}
					}
				}
			}

			.wayItem:nth-last-of-type(1) {
				border-bottom: 2rpx solid #F5F5F5;
			}

		}

		.paySure {
			font-size: 32rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			line-height: 45rpx;
			width: 610rpx;
			height: 88rpx;
			background: #F2615F;
			border-radius: 16rpx;
			margin: 40rpx auto 0;
			padding: 0;
			border: none;
		}
	}

	.passTipsBox {
		width: 550rpx;
		background: #FFFFFF;
		border-radius: 32rpx;
		padding: 30rpx;

		.tipsTitle {
			font-size: 32rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #000000;
		}

		.tipsText {
			margin-top: 30rpx;

			.safeword {
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #736464;
				line-height: 40rpx;
				width: 100%;
				height: 60rpx;
				border: 1px solid #333333;
				border-radius: 16rpx;
				padding-left: 10rpx;
			}
		}

		.tipsBtnBox {
			width: 100%;
			margin-top: 30rpx;

			button {
				padding: 0;
				margin: 0;
				width: 200rpx;
				height: 72rpx;
				border-radius: 52rpx;
				font-size: 28rpx;
			}

			.tipsCloseBtn {
				color: #F2615F;
				border: 2rpx solid #F2615F;
			}

			.tipsSureBtn {
				color: #ffffff;
				border: none;
				background: #F2615F;
			}
		}
	}
</style>